<template >
	
	<view style="background: #F1F1F1;height: 100vh;display: inline-block;width: 750rpx;">
		<view style="background: #fff;padding: 20rpx;">
			
			<u-input v-model="form.content" placeholder="请输入反馈建议" type="textarea" height="500"></u-input>
			
		</view>
		
		
		<view class="bottomFix">
			<u-button @click="submit" :custom-style="{background:'#F03033',color:'#fff'}" >提交</u-button>
		</view>
		<u-toast ref="uToast" />
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				form:{
					content:"",
					image:""
				}
			}
		},
		methods:{
			submit(){
				this.$u.post('/api/user/feedback', this.form).then(res => {
						this.$refs.uToast.show({
							title: '提交成功',
							type: 'success',
							back: true
						})
				}).catch(err => {
				
				})
			}
		}
	}
</script>

<style>
</style>
